var adminSettingCtrl = myApp.controller('adminSettingCtrl', ['$scope', '$rootScope', function($scope, $rootScope) {
	$rootScope.firstType = Tools.permissionList[5].permissionId;
	$rootScope.secondType = Tools.permissionList[5].sonPermission[2].permissionId;
	// 初始化
	function init() {
		$(document).ready(function() {
			
		});
	}
	init();

	/**
	 * 切换列表
	 * @param  {[type]} type [description]
	 * @param  {[type]} el   [description]
	 * @return {[type]}      [description]
	 */
	$scope.selectTag = function(type, el) {
		var target = el.target;
		// $(target).siblings().removeClass('active').addClass('active');
		$(target).addClass('active').siblings().removeClass('active');
		$('.tab-item').removeClass('active');
		$('.'+type).addClass('active');
	}
}]);